<?php

 
 Zend_Loader::loadClass("BaseDBRows");
 Zend_Loader::loadClass("Contact");
 class Contacts extends BaseDBRows
 {
 	protected function setUp()
 	{
 		$this->_tableName = Contact::_tablename;
 	}	
	
	public function getContact($contactId) {
		
		Zend_Loader::loadClass("QueryCreator");
		
		$query = new QueryCreator();
		$query->addSelect(" * ");
		$query->addFrom($this->_tableName . " c ");
		$query->addWhere("contact_id = " . $contactId);
		
		$db = DBCon::instance();
		// echo  $query->createSQL();die();
		$result = $db->executeQuery($query->createSQL());
		return $result;
		
	}
	
 }
?>